	.text
main:
	# FUNCTION PROLOGUE
	subu $sp, $sp, 84
	sw $s0, 8($sp)
	sw $s1, 12($sp)
	sw $s2, 16($sp)
	sw $s3, 20($sp)
	sw $ra, 76($sp)
	sw $fp, 80($sp)
	addu $fp, $sp, 84
	# END FUNCTION PROLOGUE

	la $s3, L1
	move $a0, $s3
	# PRE-CALL -> NO REGISTER NEEDS TO BE SAVED
	jal print
	move $s3, $v0
	li $s2, 2
	la $s1, L3
	la $s0, L4
	li $s3, 7
	move $a0, $s2
	move $a1, $s1
	move $a2, $s0
	move $a3, $s3
	# PRE-CALL -> NO REGISTER NEEDS TO BE SAVED
	jal createUser
	move $s0, $v0
	move $a0, $s0
	# PRE-CALL -> NO REGISTER NEEDS TO BE SAVED
	jal printint
	move $s1, $v0
	j L6
L6:
	# FUNCTION EPILOGUE
	lw $fp, 80($sp)
	lw $ra, 76($sp)
	lw $s0, 8($sp)
	lw $s1, 12($sp)
	lw $s2, 16($sp)
	lw $s3, 20($sp)
	addu $sp, $sp, 84
	jr $ra 
	# END FUNCTION EPILOGUE

createUser:
	# FUNCTION PROLOGUE
	subu $sp, $sp, 84
	sw $s0, 8($sp)
	sw $s1, 12($sp)
	sw $ra, 76($sp)
	sw $fp, 80($sp)
	addu $fp, $sp, 84
	# END FUNCTION PROLOGUE

	move $s1, $a0
	move $s1, $a1
	move $s1, $a2
	move $s1, $a3
	li $s1, 16
	move $a0, $s1
	jal malloc
	move $s0, $v0
	add $s1, $s0, 12
	sw $a3, ($s1)
	add $s1, $s0, 8
	sw $a2, ($s1)
	add $s1, $s0, 4
	sw $a1, ($s1)
	add $s1, $s0, 0
	sw $a0, ($s1)
	lw $s1, 12($s0)
	mul $s0, $s1, 7
	move $v0, $s0
	j L5
L5:
	# FUNCTION EPILOGUE
	lw $fp, 80($sp)
	lw $ra, 76($sp)
	lw $s0, 8($sp)
	lw $s1, 12($sp)
	addu $sp, $sp, 84
	jr $ra 
	# END FUNCTION EPILOGUE

	.data
L3: .asciiz "Chikoo"
L1: .asciiz "The new balance of the user is "
L4: .asciiz "Mahishi"
